
<div class="wrapMain">




	<div id="row">
		    <div class="col-md-8"> 
       <?php 
    	$title="";
		if(isset($_GET['ext'])){
			
			 switch($_GET['ext']){
			 	case 'date': $title='Mới Đăng ';break;
				case 'views': $title='Xem Nhiều ';  break;
				case 'comments': $title='Comment ';  break;
				case 'likes': $title='Likes '; break;
				case 'sochuong': $title='Nhiều Chương ';  break;
				case 'hoanthanh': $title=' Truyện Full ';break;
			 }
		}
		?>
		
                    	<ul class="breadcrumb-arrow">
                         <li><a href="<?php echo HOME; ?>"><i class="fa fa-home"></i></a></li>
                 		  <li><a href="<?php echo HOME; ?>truyen"> Truyện</a></li>
                          <?php if($title!=""){ echo "  <li class='active'><a href='".HOME."truyen/".$_GET['ext']."'>$title</a></li>";	  }?>
                     </ul>
                    
                  

        <?php if( !isset($_GET['page'])&& !isset($_GET['ext'])){?>
        
        <div class="swiper-container thumbs-cotnainer" style="box-sizing:content-box;
-moz-box-sizing:content-box; background-color:#fff; border-radius:3px">
        <div class="thumbs-title"><span style="color: #F60; font-weight:bold">T</span>ruyện đề cử</div>
        <div class="swiper-wrapper"  style="box-sizing:content-box;
-moz-box-sizing:content-box;">
  <?php 
  if($data['decu'])
  foreach ($data['decu'] as $row){?>
        	<div class="swiper-slide" >
          
<img  src="<?php echo TRUYEN_IMAGE_LOCAL.$row['hinhanh']?>"   alt="" class="lazy">

  <a href="<?php echo url_truyen($row['id'],$row['alias']) ?>" title="<?php echo $row['ten'];?>">
<div class="app-title"><?php echo $row['ten'];?></div>

<div class="app-price"><?php if($row['tinhtrang']!=1){ echo short_str($row['chuongmoinhat'],12); }else{ echo "Hoàn Thành";}?></div>
</a>
</div>
<?php }?>

 <!-- End swiper item -->
        </div> <!-- End of swiper-wrapper -->
        </div> <!-- swiper container -->

        <script>
		$(function(){
	        $('.thumbs-cotnainer').each(function(){
	            $(this).swiper({
	                slidesPerView:'auto', 
	                offsetPxBefore:10, 
	                offsetPxAfter:10,
	                autoResize: true,
	                calculateHeight: true, 
	                      loop: true
	            });
	        });
		})
        </script>
        
        <Br/>
        
        <!--Adsense -->
        <?php
		if($_SESSION['mobile']==0){
		?>
        <div class="row">
        	<div class="col-md-6" style="text-align:right">
          
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- ADSENSE MONG -HOME -->
<ins class="adsbygoogle"
     style="display:inline-block;width:336px;height:280px"
     data-ad-client="ca-pub-6643486112344004"
     data-ad-slot="6332468874"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
            </div>
            <div class="col-md-6" style="text-align:left">
          
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- ADSENSE MONG -HOME -->
<ins class="adsbygoogle"
     style="display:inline-block;width:336px;height:280px"
     data-ad-client="ca-pub-6643486112344004"
     data-ad-slot="6332468874"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
            </div>
        </div>
        <?php
		}else{
		 ?>
      <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- ADSENSE MONG -HOME -->
<ins class="adsbygoogle"
     style="display:inline-block;width:336px;height:280px"
     data-ad-client="ca-pub-6643486112344004"
     data-ad-slot="6332468874"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
         <?php }?>
        <!--End of adsense -->
        
          <div class="swiper-container thumbs-cotnainer thumbs_ngontinh" style="box-sizing:content-box;
-moz-box-sizing:content-box; background-color:#fff; border-radius:3px">
        <div class="thumbs-title"><a href="http://mong.vn/truyen/Ngon-Tinh.html"><span style="color: #F60; font-weight:bold">N</span>gôn Tình- Tình Cảm</a></div>
        <div class="swiper-wrapper"  style="box-sizing:content-box;
-moz-box-sizing:content-box;">
        <?php foreach ($data['ngontinh'] as $row){?>
        	<div class="swiper-slide" >
          
<img  src="<?php echo TRUYEN_IMAGE_LOCAL.$row['hinhanh']?>"   alt="" class="lazy">

  <a href="<?php echo url_truyen($row['id'],$row['alias']) ?>" title="<?php echo $row['ten'];?>">
<div class="app-title"><?php echo $row['ten'];?></div>

<div class="app-price"><?php if($row['tinhtrang']!=1){ echo short_str($row['chuongmoinhat'],12); }else{ echo "Hoàn Thành";}?></div>
</a>
</div>
<?php }?>
 <!-- End swiper item -->
        </div> <!-- End of swiper-wrapper -->
        </div> <!-- swiper container -->

        <script>
		$(function(){
	        $('.thumbs_ngontinh').each(function(){
	            $(this).swiper({
	                slidesPerView:'auto', 
					    loop: true,
	                offsetPxBefore:10, 
	                offsetPxAfter:10,
	               	calculateHeight: true,
					autoplay:5000
					
	                  
	            });
	        });
		})
        </script>
<?php } //end of swiper slider ?>
        
        <div class="row">
   			  <?php echo $data['nav']; ?>
              <?php $bu=HOME.'truyen/';
			  	$bu2=HOME.'truyen';
			   ?>
                      <div class="btn-group pull-right">
  <button type="button" class="btn btn-warning dropdown-toggle" data-toggle="dropdown">
   Lọc Truyện <span class="caret"></span>
  </button>
  <ul class="dropdown-menu" role="menu">
    <li><a href="<?php echo $bu2 ?>">Mới Cập Nhật</a></li>
    <li><a href="<?php echo $bu ?>date">Mới Đăng</a></li>
    <li><a href="<?php echo $bu ?>views">View</a></li>
    <li><a href="<?php echo $bu ?>likes">Like</a></li>
     <li><a href="<?php echo $bu ?>comments">Comment</a></li>
    <li><a href="<?php echo $bu ?>sochuong">Số Chương</a></li>
    <li><a href="<?php echo $bu ?>hoanthanh">Hoàn Thành</a></li>
   
  </ul>
</div>
  		 </div> <!-- End of Row -->
        <div style="height:15px"></div>
        <?php  render_item_truyen($data['info'],1); ?>
 	  	<?php echo $data['nav']; ?>
      
      
		


</div> <!-- COL MD 9 -->
  
                    <div class="col-md-4">
							  <?php   render_fanpage(); ?>
<!-- START Render TRUYEN category -->	<?php truyen_render_theloai(); ?>	
<!-- START Render TRUYEN View -->	<?php truyen_render_view(); ?>	
<!-- START RENDER video comment --> <?php render_pick(); ?> <!-- End RENDER video comment --> 
<!-- START RENDER video Xem Nhieu -->     <?php //blog_render_view(); ?>   <!-- end video xem nhieu -->
<!-- START RENDER video Xem Nhieu -->     <?php	truyen_render_right_comment(); ?>   <!-- end video xem nhieu -->
                	</div> <!-- End col -md -4 right -->

	
	</div><!-- end row -->
</div><!-- end wrapMain -->
<div class="clearfix"></div>